#pragma once

#include "U7FileDefs.h"

// CPalDoc document

class CPalDoc : public CDocument
{
	DECLARE_DYNCREATE(CPalDoc)

private:
	PBYTE m_pPaletteFlexFile;
public:
	int GetPaletteCount() const;
	PCOLORENTRY GetPaletteFile(UINT index) const;

public:
	CPalDoc();
	virtual ~CPalDoc();
#ifndef _WIN32_WCE
	virtual void Serialize(CArchive& ar);   // overridden for document i/o
#endif
#ifdef _DEBUG
	virtual void AssertValid() const;
#ifndef _WIN32_WCE
	virtual void Dump(CDumpContext& dc) const;
#endif
#endif

protected:
	virtual BOOL OnNewDocument();

	DECLARE_MESSAGE_MAP()
public:
	virtual BOOL OnOpenDocument(LPCTSTR lpszPathName);
	virtual void DeleteContents();
};
